from selenium.webdriver.common.by import By

from base import Base
class Page(Base):
    def so(self):
        loc=(By.XPATH,'//android.widget.TextView[@text="搜商品名称 作者 出版社 ISBN"]')
        ele=self.find_ele(loc)
        return ele
    def neirong(self):
        loc=(By.ID,'com.kongfz.app:id/etContent')
        ele=self.find_ele(loc)
        return ele
    def an(self):
        loc=(By.ANDROID_UIAUTOMATOR,'new UiSelector().resourceId("com.kongfz.app:id/tvSearch")')
        ele=self.find_ele(loc)
        return ele
    def duan(self):
        loc=(By.ID,'com.kongfz.app:id/tvSearch')
        ele=self.find_ele(loc)
        return ele
